﻿<Window x:Class="Historia.Formulaires.frmLieu"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Lieu" Height="442" Width="938" Background="WhiteSmoke">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
        </Grid.RowDefinitions>
        <DockPanel Grid.Row="0" LastChildFill="True" >
            <GroupBox Header="Information" DockPanel.Dock="Left" Width="Auto">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto" MinWidth="300"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="auto"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Label Grid.Column="0" Grid.Row="0">Nom</Label>
                    <TextBox Name="txtNom" Grid.Column="1" Grid.Row="0" MaxLength="100"></TextBox>
                    <Label Grid.Column="0" Grid.Row="1">Catégorie</Label>
                    <ComboBox Name="cboCategorie" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsEditable="True" />
                    <Label Grid.Column="0" Grid.Row="2">Image</Label>
                    <Image Name="imgLieu" Stretch="UniformToFill" Grid.Column="1" Grid.Row="2" MinHeight="200" MinWidth="200" Margin="3"></Image>
                    <Button Name="btnChangerImage" Grid.Column="1" Grid.Row="3" MaxWidth="200" Click="btnChangerImage_Click">Changer l'image</Button>
                    <Button Name="btnRemoveImage" Grid.Column="1" Grid.Row="4" MaxWidth="200" Click="btnRemoveImage_Click">Enlever l'image</Button>
                </Grid>
            </GroupBox>
            <TabControl MinWidth="300">
                <TabItem Header="Descripton">
                    <TextBox Name="txtDescription" AcceptsReturn="True" AcceptsTab="True" TextWrapping="Wrap"></TextBox>
                </TabItem>
                <TabItem Header="Notes">
                    <TextBox Name="txtNotes" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True"></TextBox>
                </TabItem>
            </TabControl>
        </DockPanel>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
            <Button Name="btnOK" MinWidth="75" Click="btnOK_Click">OK</Button>
            <Button Name="btnAnnuler" MinWidth="75" Click="btnAnnuler_Click">Annuler</Button>
        </StackPanel>
    </Grid>
</Window>
